{* Template Name:首页*}
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    {template:header}
</head>

<body>
    {template:c_nav}
    <div id="container">
    {if $articles}
    <div class="template_list" style="margin-bottom:40px">
        <h2><i class="iconfont icon-chibangzuo"></i><strong>{$zbp->Config('ytecn_pjax')->homeone}</strong><i class="iconfont icon-chibangyou"></i></h2>
        <div class="template_list_box">
            {foreach $articles as $article}
            <article>
                <div class="tem_ar">
                    <a href="{$article.Url}" class="template_list_img">
                        <img src="{$article.Img}" alt="{$article.Title}"
                            width="273" height="182"></a>
                    <div class="avatarbox"> <img src="{$article.Author.Avatar}" alt="{$article.Author.StaticName}">
                    </div>
                    <header>
                        <div class="template_list_type"><a href="{$article.Category.Url}"><i
                                    class="iconfont icon-dian"></i><span>{$article.Category.Name}</span></a>
                        </div>
                        <h3><a href="{$article.Url}">{$article.Title}</a></h3>
                    </header>
                    <div class="template_list_p">
                        <p>{$article.Intro}</p>
                    </div>
                    <footer>
                        <time><i class="iconfont icon-shijian"></i><span>{$article.Time('Y-m-d')}</span></time>
                        <div class="metaviewsbox"><span class="meta-views"><i
                                    class="iconfont icon-chakan"></i>{$article.ViewNums}</span>
                    </footer>
                </div>
            </article>
            {/foreach}
        </div>
    </div>
    <div class="pagebox">
        <div class="pages">
            {template:pagebar}
        </div>
    </div>
    {else}
    <div class="no-data">
        <i class="iconfont icon-ruanjiandingzhi"></i>
        <span>暂时没有找到您想要的内容！</span>
        <a href="{$host}">回到首页</a>
    </div>
    {/if}
    </div>
    {template:footer}
</body>

</html>